/*
 * @Description:
 * @Autor: Bingo
 * @Date: 2024-05-11 09:24:35
 * @LastEditors: Bingo
 * @LastEditTime: 2024-05-29 09:44:22
 */
export const remSize = () => {
  let screenWidth =
    window.document.documentElement.clientWidth || window.innerWidth;
  if (screenWidth >= 750) {
    // screenWidth = 750;
    screenWidth = 420;
  } else {
    // screenWidth = 320;
    screenWidth = 460;
  }
  // 这里是按375的物理宽度来开发  rootval是37.5
  document.documentElement.style.fontSize = screenWidth / 10 + "px";
};
remSize();
